﻿using MiniBlinkPinvoke;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniBlink.Core
{
    class BlinkEvents
    {

    }

    /// <summary>
    /// Blink基础事件参数
    /// </summary>
    public class BaseBlinkEventArgs : EventArgs
    {
        public string EventParameter { set; get; }
    }

    /// <summary>
    /// url地址改变，参数
    /// </summary>
    public class UrlChangedEventArgs : BaseBlinkEventArgs
    {
        /// <summary>
        /// 是否是主Frame
        /// </summary>
        public bool IsMainFrame { set; get; }

        public string Url { set; get; }
    }

    /// <summary>
    /// 网页导航
    /// </summary>
    public class WebNavigateEventArgs : BaseBlinkEventArgs
    {
        /// <summary>
        /// 浏览器导航类型
        /// </summary>
        public wkeNavigationType NavigateType { set; get; }

        public string Url { set; get; }
    }
}
